package util.components.menuitens;

import control.Controlador;
import patterns.Command;
import util.CreateJanelaInterna;
import view.JanelaPrincipal;

public class JMenuItemNavegacao extends javax.swing.JMenuItem implements Command{

	private int menu_index, submenu_index;
	private static JanelaPrincipal janela;
	
	public JMenuItemNavegacao(JanelaPrincipal jan, int menu, int submenu, String caption) {
		super(caption);
		
		janela = jan;
		menu_index = menu;
		submenu_index = submenu;
	}
	public void execute() {
		CreateJanelaInterna.create(janela, menu_index, submenu_index);
	}
}
